package com.cqie.secondhandtransaction.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cqie.secondhandtransaction.DTO.DataList;
import com.cqie.secondhandtransaction.entity.ProductType;
import com.cqie.secondhandtransaction.mapper.ProductTypeMapper;
import com.cqie.secondhandtransaction.service.ProductTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gdy
 * @since 2025-02-10
 */
@Service
public class ProductTypeServiceImpl extends ServiceImpl<ProductTypeMapper, ProductType> implements ProductTypeService {

    @Autowired
    private ProductTypeMapper productTypeMapper;

    @Override
    public DataList<ProductType> getProductTypeList() {
        DataList<ProductType> dataList = new DataList<>();
        dataList.setDataList(productTypeMapper.selectList(null));
        return dataList;
    }
}
